package com.group.www.service.impl;

import com.group.www.dao.impl.AddressInfoDao;
import com.group.www.interfaces.IAddressInfo_q;
import com.group.www.pojo.AddressInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@com.alibaba.dubbo.config.annotation.Service
@Service
public class AddressInfoServiceImp implements IAddressInfo_q {
    @Autowired
    private AddressInfoDao dao;

    @Override
    public List<AddressInfo> queryAddressInfoByuserId(Integer userId) {
        return dao.queryAddressInfoByuserId(userId);
    }

    @Override
    public boolean add(AddressInfo addressInfo) {
        return dao.add(addressInfo);
    }

    @Override
    public boolean update(AddressInfo addressInfo) {
        return dao.update(addressInfo);
    }

    @Override
    public boolean deleteAddressInfoByuserId(Integer userId, Integer addId) {
        return dao.deleteAddressInfoByuserId(userId,addId);
    }
    /******/
    @Override
    public boolean add(Object entity) {
        return false;
    }

    @Override
    public boolean update(Object entity) {
        return false;
    }

    @Override
    public List query() {
        return dao.query();
    }

    @Override
    public boolean delete(Object entity) {
        return false;
    }
}
